package com.wings4.accounting

import com.wings4.security.User

class MasterVoucher {

   Integer voucherYear;
   Integer masterVoucherId;
   AccountHead accountHead;
   Byte voucherType; //0 or 1 for Debit or Credit
   Date voucherDate;
   Date entryDate;
   String narration;
   Byte status;
   Module module;
   Branch branch;
   User user;





    static constraints = {
//        masterVoucherId(nullable: true);
        voucherType(nullable: true);
        voucherDate(nullable: true);
        entryDate(nullable: true);
        narration(nullable: true);
        status(nullable: true);
        module(nullable: true);
        branch(nullable: true);
        user(nullable: true);
    }

    static mapping = {
        voucherDate(sqlType: 'date');
        entryDate(sqlType: 'date');
        //voucherId(autoImport(true));
    }
}
